package com.lql.common.api;

/**
 * @author wangjian
 * @date 2019/10/9
 */
public enum ResultCode implements IResultCode {
    SUCCESS(200, "操作成功"),
    FAILURE(400, "业务异常"),
    CLIENT_UN_CARRIED_VOUCHER(40001, "客户端未携带凭证"),
    INVALID_CREDENTIAL(40002, "携带无效凭证"),
    LOGIN_OUT(40003, "登陆过期"),
    INVALID_USERNAME_OR_PASSWORD(40004, "无效用户名或密码"),
    SAVE_USER_FAIL(40011, "保存用户信息失败"),
    SAVE_CAR_ACCOUNT_FAIL(40012, "保存车辆信息失败"),
    SAVE_MER_ORDER_FAIL(40013, "创建商户订单关联信息失败"),
    SUCCESS_MER_ORDER_FAIL(400131, "完成商户订单关联信息失败"),
    SAVE_PARK_PAY_ORDER_FAIL(40014, "创建第三方停车记录支付订单失败"),
    SUCCESS_PARK_PAY_ORDE_FAIL(400141, "完成第三方支付订单失败"),
    SAVE_ORDER_PAY_FAIL(40014, "创建支付订单失败"),
    SUCCESS_PAY_ORDER_FAIL(40014, "完成支付订单失败"),
    ADD_CARACCOUNT_BALANCE_FAIL(40015, "充值支付成功，添加账户余额失败"),
    BALANCE_PAY_NOT_ENOUGH_FAIL(40016,"支付失败，账户余额不足"),
    CREATE_API_PAY_ORDER_FAIL(40017,"创建第三方支付订单失败，包含无需付费记录"),
    CREATE_INVOICE_FAIL(40018,"开票失败，创建开票记录发生错误！"),
    BALANCE_PAY__FAIL(40016,"支付失败，重复支付操作")

            ;


    final int code;
    final String message;

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    private ResultCode(final int code, final String message) {
        this.code = code;
        this.message = message;
    }
}
